Starting from version 2.42, each controller has it's own HTTP server and will serve GET and POST requests.
This page demonstrates the differents possibilities. Look at the source code of this HTML page (written in Javascript with jQuery)
to see the URL used, the data to send, the messages returned by the controller etc. The source code also includes comments
to explain the differents types and states of variables, types and states of doors...